package org.vacoor.ticket.bean;

/*
 * 车票类型
 */
public enum TicketType {
	ADULT("成人票",1), CHILD("儿童票",2), STUDENT("学生票",3), SOLDIER_DISABLEDPERSON("军残票",4);

	private String name;
	private int value;

	private TicketType(String name, int value) {
		this.name = name;
		this.value = value;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}
	
	public String toString() {
		return name + "[" + value + "]";
	}
}
